﻿using System.ComponentModel.DataAnnotations;

namespace LanqiQAwebapi.Dto
{
    public class LoginByPhone
    {

        [Required]
        [RegularExpression(@"/^1[3-9]\d{9}$/", ErrorMessage = "电话号码格式不正确")]
        public string Phone { get;}
        [Required]
        [RegularExpression(@"^\d{6}$", ErrorMessage = "PhoneCode必须是6位数字")]
        public string PhoneCode { get;}
        public string Token { get; }
    }
}
